Skip to content

Show detected browser dimensions in small-screen resolution warning#1044

Merged
JackWilb merged 3 commits intomainfrom
copilot/show-browser-window-size-warning
Feb 20, 2026
Merged

Show detected browser dimensions in small-screen resolution warning#1044
JackWilb merged 3 commits intomainfrom
copilot/show-browser-window-size-warning

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Feb 20, 2026

The small-screen modal previously only showed required minimum dimensions. This change updates the warning to also display the browser-reported current size so participants can see what the app detects.

  • Resolution warning content

    • Updated ResolutionWarning to include detected browser dimensions (window.innerWidth / window.innerHeight) in the modal body.
    • Keeps existing timeout/rejection behavior unchanged.
  • Focused e2e coverage

    • Added a Playwright spec (tests/resolution-warning.spec.ts) that opens a study at a constrained viewport and asserts the detected-size line is rendered in the warning modal.
  • Example (new warning line)

    {`Detected: Width: ${detectedSize.width}px Height: ${detectedSize.height}px`}
  • screenshot

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • api.ipify.org
    • Triggering command: /home/REDACTED/.cache/ms-playwright/chromium_headless_shell-1194/chrome-linux/headless_shell /home/REDACTED/.cache/ms-playwright/chromium_headless_shell-1194/chrome-linux/headless_shell --disable-field-trial-config --disable-REDACTED-networking --disable-REDACTED-timer-throttling --disable-REDACTEDing-occluded-windows --disable-back-forward-cache --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-REDACTED-pages --disable-component-update --no-default-browser-check --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-features=AcceptCHFrame,AvoidUnnecessaryBeforeUnloadCheckSync,DestroyProfileOnBrowserClose,DialMediaRouteProvider,GlobalMediaControls,HttpsUpgrades,LensOverlay,MediaRouter,PaintHolding,ThirdPartyStoragePartitioning,Translate,AutoDeElevate,RenderD modules/@npmcli/run-script/lib/node-gyp-bin/ldd (dns block)
    • Triggering command: /home/REDACTED/.cache/ms-playwright/chromium_headless_shell-1194/chrome-linux/headless_shell /home/REDACTED/.cache/ms-playwright/chromium_headless_shell-1194/chrome-linux/headless_shell --disable-field-trial-config --disable-REDACTED-networking --disable-REDACTED-timer-throttling --disable-REDACTEDing-occluded-windows --disable-back-forward-cache --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-REDACTED-pages --disable-component-update --no-default-browser-check --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-features=AcceptCHFrame,AvoidUnnecessaryBeforeUnloadCheckSync,DestroyProfileOnBrowserClose,DialMediaRouteProvider,GlobalMediaControls,HttpsUpgrades,LensOverlay,MediaRouter,PaintHolding,ThirdPartyStoragePartitioning,Translate,AutoDeElevate,RenderD bin/ldd (dns block)
    • Triggering command: /home/REDACTED/.cache/ms-playwright/chromium_headless_shell-1194/chrome-linux/headless_shell /home/REDACTED/.cache/ms-playwright/chromium_headless_shell-1194/chrome-linux/headless_shell --disable-field-trial-config --disable-REDACTED-networking --disable-REDACTED-timer-throttling --disable-REDACTEDing-occluded-windows --disable-back-forward-cache --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-REDACTED-pages --disable-component-update --no-default-browser-check --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-features=AcceptCHFrame,AvoidUnnecessaryBeforeUnloadCheckSync,DestroyProfileOnBrowserClose,DialMediaRouteProvider,GlobalMediaControls,HttpsUpgrades,LensOverlay,MediaRouter,PaintHolding,ThirdPartyStoragePartitioning,Translate,AutoDeElevate,RenderD de/node/bin/ldd pull.rebase (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>On browser too small warning, show the size that the browser thinks your monitor is</issue_title>
<issue_description></issue_description>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Feb 20, 2026

🪓 PR closed, deleted preview.

Copilot AI and others added 2 commits February 20, 2026 17:16
Co-authored-by: JackWilb <36867477+JackWilb@users.noreply.github.com>
Co-authored-by: JackWilb <36867477+JackWilb@users.noreply.github.com>
Copilot AI changed the title [WIP] Add warning message for small browser size showing monitor size Show detected browser dimensions in small-screen resolution warning Feb 20, 2026
Copilot AI requested a review from JackWilb February 20, 2026 17:20
@JackWilb JackWilb marked this pull request as ready for review February 20, 2026 17:20
@JackWilb JackWilb merged commit 8d01a3c into main Feb 20, 2026
6 of 8 checks passed
@JackWilb JackWilb deleted the copilot/show-browser-window-size-warning branch February 20, 2026 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

On browser too small warning, show the size that the browser thinks your monitor is

2 participants